package cn.iocoder.yudao.module.wine.controller.admin.premiumrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 保费记录新增/修改 Request VO")
@Data
public class PremiumRecordSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11590")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22356")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "保费", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "保费不能为空")
    private BigDecimal premium;

    @Schema(description = "状态 0 未支付 1 已支付  2已退", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态 0 未支付 1 已支付  2已退不能为空")
    private Integer status;

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3673")
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    @Schema(description = "交易号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3673")
    private String tradeNo;

    @Schema(description = "交易时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "交易号")
    private LocalDateTime tradeTime;

}
